<div class="inner-left">
	<div class="l-list-1">
		<h3><?php echo $this->__('Categories');?></h3>
		<?php
			App::Plugin("CatMultiLevelMenu_Generator")
			   ->setUrlPattern($this->baseurl("/store-by-cat/[id]/[title]"))
			   ->setLinkToParent(true)
			   ->setType('product-cat')
			   ->setSelected($catid)
			   ->setSelectedCSSClass('link-selected')
			   ->getRecursive();
		?>
	</div>
</div>
<div class="inner-right">
	<input type="button" value="Continue checkout >>" class="checkout-button <?php echo (App::Component('appStore')->Helper('Data')->isToCheckout()) ? "show" : "hide";?>" />
	<?php if(!empty($products['data'])):?>
		<ul class="grid-list glitter">
		<?php foreach($products['data'] as $key => $product):?>
			<?php echo ($key%3 == 0)? App::Helper('Html')->getTag('li',Array('class'=>'pborderb')) : App::Helper('Html')->getTag('li',Array('class'=>'pborderlb'));?>
				<?php echo App::Helper('Html')->imgTag($product['imagethumb'],array('mode'=>'imagemanager'),array('class'=>'box'));?><br />
				<strong>Price : <?php echo( App::Helper('Config')->siteInfo('currency') . $product['price']);?></strong>
				<h3><?php echo($product['title']);?></h3>
				<div class="add2cartwrapper">
					<input type="hidden" size="2" value="<?php echo $product['id']; ?>" class="productid" />
					<?php App::Hook('UI')->Render('appstore_checkout_button_left',$product); ?>
					<input type="text" size="2" value="<?php echo App::Component('appStore')->Helper('Data')->getCartInfoByProductId($product['id'])?>" class="add2cart-input" />
					<input type="submit" value="Add 2 Cart" class="add2cart-button" />
					<?php App::Hook('UI')->Render('appstore_checkout_button_right',$product); ?>
				</div>
				<?php echo($product['shortdesc']);?>
			</li>
		<?php endforeach;?>
		</ul>
		<br class="clearboth" />
		<?php if($products['paging']!=''):?>
			<p><?php echo $products['link']; ?></p>
		<?php endif;?>
	<?php else:?>
		<h2><?php echo $this->__("Sorry! No post submitted yet"); ?></h2>
	<?php endif;?>
</div>
<div class="clearboth"></div>